package com.wwdx.service;

import com.wwdx.model.WwdxOpenAuthModel;

/**
 * @author liguoliang
 * @date 2018/9/20 11:38
 */
public interface WwdxOpenAuthServiceI extends BaseServiceI<WwdxOpenAuthModel> {

    /**
     * 根据微信号获取
     * @param openId 用户id
     * @param status 授权状态 0 未授权 1 已授权
     * @return 公众号信息
     */
    WwdxOpenAuthModel getByOpenIdAndStatus(String openId,Integer status);

    /**
     * 根据微信号获取
     * @param appId 授权方ID
     * @return 公众号信息
     */
    WwdxOpenAuthModel getByAppId(String appId);
}